home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Snippets / CustomDialog Demo / Headers / Custom.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-06  |  1.4 KB  |  48 lines  |  [TEXT/MMCC]

  1. /**********************************************************************
  2.  *
  3.  *                        CustomGetFile Dialog Demo
  4.  *
  5.  *    Custom.h
  6.  *
  7.  *    Written in CodeWarrior Gold 5.5
  8.  *    August 31, 1995
  9.  *
  10.  *    Copyright © 1995 Carl B. Constantine
  11.  *    Some portions Copyright © 1995 MetroWerks, Inc.
  12.  *    Some portions Copyright © 1995 Apple Computer, Inc.
  13.  *
  14.  **********************************************************************/
  15.  
  16.  /*------------------------------------------------------------------
  17.   #
  18.   #                            File History
  19.   #
  20.   #        Date                Description of Change
  21.   #        ----                ---------------------
  22.   #        Aug 31/93            — Original creation of file
  23.   #
  24.   -------------------------------------------------------------------*/
  25.  
  26. /*===================== Defines & Structures =======================*/
  27.  
  28. #define rGetVolumeDLOG    0    // Standard CustomGetDialog template
  29. #define kFolderBit    4        // Bit to Test
  30.  
  31.  
  32. // Just some dummy data structure.  You can set up your own easily enough
  33. #pragma options align=mac68k
  34. typedef struct
  35. {
  36.     short typeCode;
  37. } GetHookRec;
  38. #pragma options align=reset
  39.  
  40.  
  41. /*============================= Prototypes ==============================*/
  42.  
  43. StandardFileReply DoGetVolume( void );
  44. static pascal Boolean MyCustomFileFilter( CInfoPBPtr pb, Ptr myDataPtr );
  45. static pascal short MyDlgHook( short item, DialogPtr theDialog, Ptr myDataPtr );
  46.  
  47.  
  48. /*============================= End of File ==============================*/